package com.lzy.cloud.order.remote;

import com.lzy.cloud.order.dtos.MsgOrderRefundDto;
import com.lzy.framework.core.output.Result;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Description: 消息中间件接口
 * @Author:   gyl
 * @Date:     2018/7/16 14:59
 */
@FeignClient(name = "lzy-cloud-rabbitmq")
public interface RabbitmqApi {

    /**
     * 方法说明：取消订单
     * @date   2018/7/16 15:04
     */
    @RequestMapping(value = "/mq/send/order/cancel/{orderId}")
    Result cancelOrder(@PathVariable("orderId") String orderId);

    /**
     * 退订退款
     * @param msgOrderRefundDto
     * @return
     */
    @RequestMapping(value = "/unsubscribe",method = RequestMethod.POST)
    Result unsubscribe(MsgOrderRefundDto msgOrderRefundDto);


}
